import request from '@/utils/request'

//列表
export function getPropertyfee(params) {
  return request({
    url: '/park/propertyfee',
    params
  })
}

//删除
export function delPropertyfee(id) {
  return request({
    method: 'DELETE',
    url: `/park/propertyfee/${id}`
  })
}

//查看详情
export function getProperty(id) {
  return request({
    url: `/park/propertyfee/${id}`
  })
}

//查询所有企业
export function getEnterprise() {
  return request({
    url: 'park/all/enterprise'
  })
}

//查询所有楼宇
export function getBuilding() {
  return request({
    url: 'park/all/building'
  })
}

//查询所有楼宇
export function getTotal(data) {
  return request({
    method: 'POST',
    url: 'park/propertyfee/pre/payment',
    data
  })
}

//添加
export function addBill(data) {
  return request({
    method: 'POST',
    url: 'park/propertyfee',
    data
  })
}
